<?php 
	echo form_open('m_pegawai/update', array('id' => 'UpdatePegawai')); 
	foreach ($list as $row){ 
?>
	<input type="hidden" value="<?php echo $row->id_m_pegawai;?>" name="id_m_pegawai"/>
	<input type="text" value="<?php echo $row->nama_lengkap;?>" name="nama_lengkap" class="editFocus form-control form-elba input-sm" placeholder="Nama lengkap"/><br/>
	<input type="text" value="<?php echo $row->tmp_lahir;?>" name="tmp_lahir" class="form-control form-elba input-sm" placeholder="Tempat lahir"/><br/>
	<input type="text" id="tglModal" value="<?php echo date("d/m/Y",strtotime($row->tgl_lahir));?>" name="tgl_lahir" class="form-control form-elba input-sm" placeholder="Tanggal lahir" readonly/><br/>
	<input type="text" value="<?php echo $row->no_tlp;?>" name="no_tlp" class="form-control form-elba input-sm" placeholder="No. telepon"/><br/>			
	<input type="text" value="<?php echo $row->email;?>" name="email" class="form-control form-elba input-sm" placeholder="Email"/><br/>	
	<textarea name="alamat" class="form-control form-elba input-sm" placeholder="Alamat"><?php echo $row->alamat;?></textarea><br/>
	<span id="loadingUpdate" style="display:none;">Sedang memproses..</span>
	<span id="errorUpdate" style="display:none;color:red;">Ma'af, gagal mengupdate data</span>
	<span class="pull-right">
		<button type="submit" class="btn btn-xs tmb-utama"> Simpan</button> 
		<button class="btn tmb-kedua close-reveal-modal close-modal"> Batal</button>
	</span>
<?php 
	}
	echo form_close();
?>